home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.004 / xemacs-1 / xemacs-19.13 / src / m / hp800.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-28  |  4.3 KB  |  146 lines

  1. /* machine description file for hp9000 series 800 machines.
  2.    Copyright (C) 1987 Free Software Foundation, Inc.
  3.  
  4. This file is part of GNU Emacs.
  5.  
  6. GNU Emacs is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2, or (at your option)
  9. any later version.
  10.  
  11. GNU Emacs is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with GNU Emacs; see the file COPYING.  If not, write to
  18. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  19.  
  20.  
  21. /* The following line tells the configuration script what sort of 
  22.    operating system this machine is likely to run.
  23.    USUAL-OPSYS="hpux"  */
  24.  
  25. /* Define WORD_MACHINE if addresses and such have
  26.  * to be corrected before they can be used as byte counts.  */
  27.  
  28. #undef WORD_MACHINE
  29.  
  30. /* Now define a symbol for the cpu type, if your compiler
  31.    does not define it automatically:
  32.    Ones defined so far include vax, m68000, ns16000, pyramid,
  33.    orion, tahoe, APOLLO and many others */
  34. #ifndef hp9000s800
  35. #    define hp9000s800
  36. #endif
  37.  
  38. /* Use type int rather than a union, to represent Lisp_Object */
  39. /* This is desirable for most machines.  */
  40.  
  41. #define NO_UNION_TYPE
  42.  
  43. /* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend
  44.    the bit field into an int.  In other words, if bit fields
  45.    are always unsigned.
  46.  
  47.    If you use NO_UNION_TYPE, this flag does not matter.  */
  48.  
  49. #define EXPLICIT_SIGN_EXTEND
  50.  
  51. /* Data type of load average, as read out of kmem.  */
  52.  
  53. #define LOAD_AVE_TYPE double
  54.  
  55. /* Convert that into an integer that is 100 for a load average of 1.0  */
  56.  
  57. #define LOAD_AVE_CVT(x) ((int) (x * 100.0))
  58.  
  59.  
  60. /* Define CANNOT_DUMP on machines where unexec does not work.
  61.    Then the function dump-emacs will not be defined
  62.    and temacs will do (load "loadup") automatically unless told otherwise.  */
  63.  
  64. #undef CANNOT_DUMP
  65.  
  66. /* Define VIRT_ADDR_VARIES if the virtual addresses of
  67.    pure and impure space as loaded can vary, and even their
  68.    relative order cannot be relied on.
  69.  
  70.    Otherwise Emacs assumes that text space precedes data space,
  71.    numerically.  */
  72.  
  73. #define VIRT_ADDR_VARIES
  74.  
  75. /* Define C_ALLOCA if this machine does not support a true alloca
  76.    and the one written in C should be used instead.
  77.    Define HAVE_ALLOCA to say that the system provides a properly
  78.    working alloca function and it should be used.
  79.    Define neither one if an assembler-language alloca
  80.    in the file alloca.s should be used.  */
  81.  
  82. /* lemacs change:  define HAVE_ALLOCA if gcc is being used */
  83. #ifdef __GNUC__
  84. #define HAVE_ALLOCA
  85. #else
  86. #define C_ALLOCA
  87. #endif
  88.  
  89. /* the data segment on this machine always starts at address 0x40000000. */
  90.  
  91. #define DATA_SEG_BITS 0x40000000
  92.  
  93. #ifdef DATA_START
  94. #undef DATA_START
  95. #endif
  96. #ifdef TEXT_START
  97. #undef TEXT_START
  98. #endif
  99.  
  100. #define DATA_START    0x40000000
  101. #define TEXT_START    0x00000000
  102.  
  103. #define STACK_DIRECTION 1 
  104.  
  105. /* Define NO_REMAP if memory segmentation makes it not work well
  106.    to change the boundary between the text section and data section
  107.    when Emacs is dumped.  If you define this, the preloaded Lisp
  108.    code will not be sharable; but that's better than failing completely.  */
  109.  
  110. #define NO_REMAP
  111.  
  112. /* This machine requires completely different unexec code
  113.    which lives in a separate file.  Specify the file name.  */
  114.  
  115. #define UNEXEC unexhp9k800.o
  116.  
  117. #define LIBS_MACHINE
  118. #define LIBS_DEBUG
  119.  
  120. /* Define NEED_BSDTTY if you have such. */
  121.  
  122. #define NEED_BSDTTY
  123.  
  124. /* The symbol in the kernel where the load average is found
  125.    is named _avenrun.  At this time there are two major flavors
  126.    of hp-ux (there is the s800 and s300 (s200) flavors).  The
  127.    differences are thusly moved to the corresponding machine description file.
  128. */
  129.  
  130. /* no underscore please */
  131. #define LDAV_SYMBOL "avenrun"
  132.  
  133. #if 0   /* Supposedly no longer true.  */
  134. /* In hpux, for unknown reasons, S_IFLNK is defined even though
  135.    symbolic links do not exist.
  136.    Make sure our conditionals based on S_IFLNK are not confused.
  137.  
  138.    Here we assume that stat.h is included before config.h
  139.    so that we can override it here.  */
  140.  
  141. #undef S_IFLNK
  142. #endif
  143.  
  144. /* Include the file bsdtty.h, since this machine has job control.  */
  145. #define NEED_BSDTTY
  146.